package com.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mapper.CommentMapper;
import com.service.CommentService;
import com.vo.Comment;
@Service
public class CommentServiceImpl implements CommentService {

	@Autowired
	CommentMapper commentMapper;
	@Override
	public List<Comment> listRecentComment(Integer n) {
		
		return commentMapper.listRecentComment(n);
	}
	@Override
	public void deleteComment(Integer commentId) {
		commentMapper.deleteComment(commentId);
		
	}

}
